<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Laraki
 * Date: 08/06/13
 * Time: 13:58
 * To change this template use File | Settings | File Templates.
 */


require_once('magpierss/rss_fetch.inc');
class RssReader
{

    public static function getfeeds(){
        $t=array();
        $rss_01 = fetch_rss("http://hespress.com/feed/index.rss");
        $rss_02 = fetch_rss("http://www.hibapress.com/rss.php");
        $rss_03 = fetch_rss("http://www.menara.ma/fr/rss/actualites-ar.xml");
        $rss_04 = fetch_rss("http://www.menara.ma/fr/rss/technologies-ar.xml");
        $rss_05 = fetch_rss("http://www.menara.ma/fr/rss/insolite-ar.xml");
        $rss_06 = fetch_rss("http://www.menara.ma/fr/rss/economie-ar.xml");
        $rss_07 = fetch_rss("http://www.menara.ma/fr/rss/culture-ar.xml");
        $rss_08 = fetch_rss("http://www.menara.ma/fr/rss/sports-ar.xml");

        //Adding feeds to array
        $t['hespress']=$rss_01->items;
        $t['hibapress']=$rss_02->items;
        $t['menara_actu']=$rss_03->items;
        $t['menara_tech']=$rss_04->items;
        $t['menara_divers']=$rss_05->items;
        $t['menara_economie']=$rss_06->items;
        $t['menara_culture']=$rss_07->items;
        $t['menara_sport']=$rss_08->items;

        return $t;
    }

}

